Skip to content

Adjust nnbd spec to allow a const factory in a class with a late final variable #1764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 23, 2021

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Jul 28, 2021

Cf. issue #1763. It looks like we can allow a const factory constructor (which is then necessarily redirecting) in a class that has a late final instance variable.

There will be an implementation effort (it is currently, correctly according to the spec, reported as an error).

Copy link
Member

@lrhn lrhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an entry to the changelog at the top as well.

Otherwise LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants